//引入封装的公共的请求插件
import {GET, POST, UPLOAD} from '@/services/request.js'

export default {
    // 收货地址列表
    AddressIndex(data ={}){
        return POST({
            url:'user/address/index',
            params:data
        })
    }, 
    // 添加收货地址
    AddressAdd(data ={}){
        return POST({
            url:'user/address/add',
            params:data
        })
    },
    // 切换收货地址
    AddressCheck(data ={}){
        return POST({
            url:'user/address/check',
            params:data
        })
    },
    // 查询收货地址详情
    AddressInfo(data ={}){
        return POST({
            url:'user/address/info',
            params:data
        })
    },
    // 编辑收货地址详情
    AddressEdit(data ={}){
        return POST({
            url:'user/address/edit',
            params:data
        })
    },
    // 删除收货地址
    AddressDelete(data ={}){
        return POST({
            url:'user/address/del',
            params:data
        })
    },
    // 订单默认地址
    AddressOrder(data ={}){
        return POST({
            url:'user/address/order',
            params:data
        })
    }
}